package com.scm.bean;

import java.sql.Timestamp;

/**
 * Partpurchase entity. @author MyEclipse Persistence Tools
 */

public class Partpurchase implements java.io.Serializable {

	// Fields

	private Integer purchaseId;
	private Part part=new Part();
	private Timestamp purchaseDate;
	private Integer purchaseCount;
	private Double money;

	// Constructors

	/** default constructor */
	public Partpurchase() {
	}

	/** full constructor */
	public Partpurchase(Part part, Timestamp purchaseDate,
			Integer purchaseCount, Double money) {
		this.part = part;
		this.purchaseDate = purchaseDate;
		this.purchaseCount = purchaseCount;
		this.money = money;
	}

	// Property accessors

	public Integer getPurchaseId() {
		return this.purchaseId;
	}

	public void setPurchaseId(Integer purchaseId) {
		this.purchaseId = purchaseId;
	}

	public Part getPart() {
		return this.part;
	}

	public void setPart(Part part) {
		this.part = part;
	}

	public Timestamp getPurchaseDate() {
		return this.purchaseDate;
	}

	public void setPurchaseDate(Timestamp purchaseDate) {
		this.purchaseDate = purchaseDate;
	}

	public Integer getPurchaseCount() {
		return this.purchaseCount;
	}

	public void setPurchaseCount(Integer purchaseCount) {
		this.purchaseCount = purchaseCount;
	}

	public Double getMoney() {
		return this.money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}

}